<?php $_type = $this->query->is_page ? 'page' : 'post'; ?>
【评论】<br/>
<?php if($post->comment_status=='open'){ ?>
<input type="text" maxlength="250" emptyok="false" name="comment" width="98%" />
<anchor>发表评论
	<go href="<?php echo $this->url($_type, $post->ID); ?>" method="post">
	<postfield name="comment" value="$comment" />
	<postfield name="parent" value="0" />
	<postfield name="pid" value="<?php echo $post->ID; ?>" />
	<postfield name="logged_user_id" value="<?php echo $this->logged_user->ID; ?>" />
	<postfield name="submit" value="<?php echo $post->ID; ?>" />
	<postfield name="email" value="<?php echo md5($_SERVER['HTTP_USER_AGENT']); ?>@cmsdream.com" />
	<postfield name="username" value="手机网友" />
	<postfield name="url" value="http://www.cmsdream.com/" />
	</go>
</anchor><br/>
<?php } ?>
<a href="<?php echo $this->url('home');?>/comments/<?php echo $post->ID;?>">查看更多评论，共有<?php echo $post->comment; ?>条 &gt;&gt;</a><br/>
<?php $this->setting->comments_per_page = 8;?>
<?php foreach((array)$p->getComment($post->ID, 0, false)->Data as $cmt){ ?>
<u><?php echo $cmt->author;?></u>:<?php echo $this->wapSubString($cmt->content, 50);?>(<?php echo date("Y/m/d H:i", strtotime($cmt->time)); ?>)<br/>
---------------<br/>
<?php } ?>
